package router

import (
	"emicro_test/emicro_7/grpc_gateway/handler"
	"github.com/julienschmidt/httprouter"
)

func Router() *httprouter.Router{
	router := httprouter.New()

	//注册路由Get请求
	router.GET("/user/test/:user_id", handler.TestUserGet)

	//注册路由Post请求
	router.POST("/user/test1", handler.TestUserPost)

	//注册路由
	router.POST("/user/reg", handler.RoleReg)

	//登录路由
	router.POST("/user/login", handler.RoleLogin)

	return router
}
